import { http } from '/@/utils/http';
import type {
  HotsPotListGetResultModel,
  ArticleListGetResultModel,
  CommunityListGetResultModel,
  UserListGetResultModel,
  ActivityListGetResultModel,
  // StatisticInfoGetResultModel,
} from './model/homeModel';

export function queryHomeHotsPotList() {
  return http.post<HotsPotListGetResultModel>({
    url: '/api/app/hotspot/hotspot/list',
    params: {
      recommend: 0,
    },
  });
}

export function queryHomeArticleList() {
  return http.post<ArticleListGetResultModel>({
    url: '/api/app/article/article/list',
    params: {
      recommend: 0,
    },
  });
}

export function queryHomeCommunityList() {
  return http.post<CommunityListGetResultModel>({
    url: '/api/app/community/community/list',
    params: {
      recommend: 0,
    },
  });
}

export function queryHomeUserList() {
  return http.post<UserListGetResultModel>({
    url: '/api/app/user/user/list',
    params: {
      recommend: 0,
    },
  });
}

export function queryHomeActivityList() {
  return http.post<ActivityListGetResultModel>({
    url: '/api/app/activity/activity/list',
    params: {
      recommend: 0,
    },
  });
}

// export function queryHomeStatisticInfo() {
//   return http.get<StatisticInfoGetResultModel>({
//     url: '/basic-api/app/statistic/statistic/info',
//     params: {
//       recommend: 0,
//     },
//   });
// }
